package com.koo.modules.sale.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.koo.common.base.entity.CommonEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author charlin
 * @email 136137465@qq.com
 * @date 2023-03-16 16:57:09
 */
@Data
@ApiModel("")
@TableName("sale_pay_order")
public class SalePayOrderEntity extends CommonEntity {
    private static final long serialVersionUID = 1L;


    @ExcelIgnore
    @TableId
    private Long payId;

    @ColumnWidth(11)
    @ExcelProperty("支付类型 1:现金，2:支付宝,3:微信,4:社保卡,5:银联,6:其它")
    @ApiModelProperty(value = "支付类型 1:现金，2:支付宝,3:微信,4:社保卡,5:银联,6:其它")
    private Integer payPype;

    @ColumnWidth(11)
    @ExcelProperty("1:销售, -1:退货")
    @ApiModelProperty(value = "1:销售, -1:退货")
    private Integer saleType;

    @ColumnWidth(11)
    @ExcelProperty("销售id")
    @ApiModelProperty(value = "销售id")
    private Long saleId;

    @ColumnWidth(11)
    @ExcelProperty("销售编号")
    @ApiModelProperty(value = "销售编号")
    private String saleNo;

    @ColumnWidth(11)
    @ExcelProperty("支付编号")
    @ApiModelProperty(value = "支付编号")
    private String payNo;

    @ColumnWidth(11)
    @ExcelProperty("支付日期")
    @ApiModelProperty(value = "支付日期")
    private Date payDate;

    @ColumnWidth(11)
    @ExcelProperty("总支付金额")
    @ApiModelProperty(value = "总支付金额")
    private BigDecimal payFee;

    @ColumnWidth(11)
    @ExcelProperty("其它支付金额")
    @ApiModelProperty(value = "其它支付金额")
    private BigDecimal otherFee;

    @ColumnWidth(11)
    @ExcelProperty("社保卡支付金额")
    @ApiModelProperty(value = "社保卡支付金额")
    private BigDecimal socialFee;

    @ColumnWidth(11)
    @ExcelProperty("支付码")
    @ApiModelProperty(value = "支付码")
    private String authCode;

    @ColumnWidth(11)
    @ExcelProperty("支付交易码")
    @ApiModelProperty(value = "支付交易码")
    private String tradeNo;

    @ColumnWidth(11)
    @ExcelProperty("接收金额")
    @ApiModelProperty(value = "接收金额")
    private BigDecimal receiveFee;

    @ColumnWidth(11)
    @ExcelProperty("实际金额")
    @ApiModelProperty(value = "实际金额")
    private BigDecimal realFee;

    @ColumnWidth(11)
    @ExcelProperty("找零金额")
    @ApiModelProperty(value = "找零金额")
    private BigDecimal changeFee;

    @ColumnWidth(11)
    @ExcelProperty("营业员")
    @ApiModelProperty(value = "营业员")
    private String sellUser;

    @ColumnWidth(11)
    @ExcelProperty("营业员id")
    @ApiModelProperty(value = "营业员id")
    private Long sellUserId;

    @ColumnWidth(11)
    @ExcelProperty("0:线下支付， 1：线上支付")
    @ApiModelProperty(value = "0:线下支付， 1：线上支付")
    private Integer isOnlinePay;

    @ColumnWidth(11)
    @ExcelProperty("优惠券信息")
    @ApiModelProperty(value = "优惠券信息")
    private String couponInfo;



}
